<?php

class Lib_Config
{

    public static function getConfig($file)
    {
        $env = getenv('RUNTIME_ENVIROMENT') ? getenv('RUNTIME_ENVIROMENT') : (defined('SHELL_VARIABLE') ? SHELL_VARIABLE : '');
        $env = empty($env) ? 'local' : $env;
        $config = require(THIS_LIBRARY_DIR . '/Conf/' . $env . '/'.$file.'.php');
        return $config;
    }
}
